package com.snail.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author cici
 * @description fegin调用接口
 * @date 2025/8/20 21:00
 */
@FeignClient(name = "learn-search" ,path = "/search")
public interface ESSearchFeignClient {

    @GetMapping("/product")
    String searchProduct(@RequestParam("keyword") String keyword,
                         @RequestParam("page") int page,
                         @RequestParam("size") int size);

    @GetMapping("/user")
    String searchUser(@RequestParam("keyword") String keyword,
                      @RequestParam("page") int page,
                      @RequestParam("size") int size);

    @GetMapping("/work")
    String searchWork(@RequestParam("keyword") String keyword,
                      @RequestParam("page") int page,
                      @RequestParam("size") int size);

}
